package com.lyy.entity;

import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import java.io.Serializable;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单操作历史记录 实体类。
 *
 * @author LiangYaoyun
 * @since 2024-06-22
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "oms_order_operate_history", schema = "yunch_shop")
public class OrderOperateHistory implements Serializable {

    @Id(keyType = KeyType.Auto)
    private Long id;

    /**
     * 订单id
     */
    private Long orderId;

    /**
     * 操作人：用户；系统；后台管理员
     */
    private String operateMan;

    /**
     * 操作时间
     */
    private LocalDateTime createTime;

    /**
     * 订单状态：0->待付款；1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单
     */
    private Integer orderStatus;

    /**
     * 备注
     */
    private String note;

}
